<?
include("../include/database.php");
if(isset($_GET['id'])){
    echo $database->id2username($_GET['id']);
}
?>
<?

    function assign_rand_value($num)
    {
    switch($num)
    {
        case "1":
        $rand_value = "Jake S Nake";
        break;
        case "2":
        $rand_value = "Yimming Zang";
        break;
        case "3":
        $rand_value = "Flint U. Corn";
        break;
        case "4":
        $rand_value = "Carrey U. Toung";
        break;
        case "5":
        $rand_value = "Bart Simsion";
        break;
    }
    return $rand_value;
    }


    function get_rand_id()
    {
    $rand_id="";
    mt_srand((double)microtime() * 1000000);
    $num = mt_rand(1,5);
    $rand_id .= assign_rand_value($num);
    return $rand_id;
    } 

    //echo get_rand_id();

?>
